package com.aisino.encrypt.entity;

/**
 * @author wangl
 * @date 2021-09-27 13:32
 */
public class EncryptKey {

    // 私钥 byte数组
    private byte[] privateKeyByte;
    // 公钥 byte数组
    private byte[] publicKeyByte;
    // 私钥 字符串
    private String privateKeyStr;
    // 公钥 字符串
    private String publicKeyStr;

    public EncryptKey(byte[] privateKeyByte, byte[] publicKeyByte) {
        this.privateKeyByte = privateKeyByte;
        this.publicKeyByte = publicKeyByte;
    }

    public EncryptKey(String privateKeyStr, String publicKeyStr) {
        this.privateKeyStr = privateKeyStr;
        this.publicKeyStr = publicKeyStr;
    }

    public EncryptKey(byte[] privateKeyByte, byte[] publicKeyByte, String privateKeyStr, String publicKeyStr) {
        this.privateKeyByte = privateKeyByte;
        this.publicKeyByte = publicKeyByte;
        this.privateKeyStr = privateKeyStr;
        this.publicKeyStr = publicKeyStr;
    }

    public byte[] getPrivateKeyByte() {
        return privateKeyByte;
    }

    public void setPrivateKeyByte(byte[] privateKeyByte) {
        this.privateKeyByte = privateKeyByte;
    }

    public byte[] getPublicKeyByte() {
        return publicKeyByte;
    }

    public void setPublicKeyByte(byte[] publicKeyByte) {
        this.publicKeyByte = publicKeyByte;
    }

    public String getPrivateKeyStr() {
        return privateKeyStr;
    }

    public void setPrivateKeyStr(String privateKeyStr) {
        this.privateKeyStr = privateKeyStr;
    }

    public String getPublicKeyStr() {
        return publicKeyStr;
    }

    public void setPublicKeyStr(String publicKeyStr) {
        this.publicKeyStr = publicKeyStr;
    }
}
